/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.service.persistence;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;

import slcu.model.InscripcionDisciplina;

import java.util.List;

/**
 * The persistence utility for the Inscripcion service. This utility wraps {@link InscripcionDisciplinaPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author tito
 * @see InscripcionDisciplinaPersistence
 * @see InscripcionDisciplinaPersistenceImpl
 * @generated
 */
public class InscripcionDisciplinaUtil {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
	 */

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
	 */
	public static void clearCache() {
		getPersistence().clearCache();
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
	 */
	public static void clearCache(InscripcionDisciplina inscripcionDisciplina) {
		getPersistence().clearCache(inscripcionDisciplina);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
	 */
	public long countWithDynamicQuery(DynamicQuery dynamicQuery)
		throws SystemException {
		return getPersistence().countWithDynamicQuery(dynamicQuery);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
	 */
	public static List<InscripcionDisciplina> findWithDynamicQuery(
		DynamicQuery dynamicQuery) throws SystemException {
		return getPersistence().findWithDynamicQuery(dynamicQuery);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
	 */
	public static List<InscripcionDisciplina> findWithDynamicQuery(
		DynamicQuery dynamicQuery, int start, int end)
		throws SystemException {
		return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
	 */
	public static List<InscripcionDisciplina> findWithDynamicQuery(
		DynamicQuery dynamicQuery, int start, int end,
		OrderByComparator orderByComparator) throws SystemException {
		return getPersistence()
				   .findWithDynamicQuery(dynamicQuery, start, end,
			orderByComparator);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
	 */
	public static InscripcionDisciplina update(
		InscripcionDisciplina inscripcionDisciplina, boolean merge)
		throws SystemException {
		return getPersistence().update(inscripcionDisciplina, merge);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
	 */
	public static InscripcionDisciplina update(
		InscripcionDisciplina inscripcionDisciplina, boolean merge,
		ServiceContext serviceContext) throws SystemException {
		return getPersistence()
				   .update(inscripcionDisciplina, merge, serviceContext);
	}

	/**
	* Caches the Inscripcion in the entity cache if it is enabled.
	*
	* @param inscripcionDisciplina the Inscripcion
	*/
	public static void cacheResult(
		slcu.model.InscripcionDisciplina inscripcionDisciplina) {
		getPersistence().cacheResult(inscripcionDisciplina);
	}

	/**
	* Caches the Inscripcions in the entity cache if it is enabled.
	*
	* @param inscripcionDisciplinas the Inscripcions
	*/
	public static void cacheResult(
		java.util.List<slcu.model.InscripcionDisciplina> inscripcionDisciplinas) {
		getPersistence().cacheResult(inscripcionDisciplinas);
	}

	/**
	* Creates a new Inscripcion with the primary key. Does not add the Inscripcion to the database.
	*
	* @param inscripcionId the primary key for the new Inscripcion
	* @return the new Inscripcion
	*/
	public static slcu.model.InscripcionDisciplina create(long inscripcionId) {
		return getPersistence().create(inscripcionId);
	}

	/**
	* Removes the Inscripcion with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param inscripcionId the primary key of the Inscripcion
	* @return the Inscripcion that was removed
	* @throws slcu.NoSuchInscripcionDisciplinaException if a Inscripcion with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina remove(long inscripcionId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionDisciplinaException {
		return getPersistence().remove(inscripcionId);
	}

	public static slcu.model.InscripcionDisciplina updateImpl(
		slcu.model.InscripcionDisciplina inscripcionDisciplina, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().updateImpl(inscripcionDisciplina, merge);
	}

	/**
	* Returns the Inscripcion with the primary key or throws a {@link slcu.NoSuchInscripcionDisciplinaException} if it could not be found.
	*
	* @param inscripcionId the primary key of the Inscripcion
	* @return the Inscripcion
	* @throws slcu.NoSuchInscripcionDisciplinaException if a Inscripcion with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina findByPrimaryKey(
		long inscripcionId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionDisciplinaException {
		return getPersistence().findByPrimaryKey(inscripcionId);
	}

	/**
	* Returns the Inscripcion with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param inscripcionId the primary key of the Inscripcion
	* @return the Inscripcion, or <code>null</code> if a Inscripcion with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina fetchByPrimaryKey(
		long inscripcionId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByPrimaryKey(inscripcionId);
	}

	/**
	* Returns all the Inscripcions where numeroDocumento = &#63;.
	*
	* @param numeroDocumento the numero documento
	* @return the matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.InscripcionDisciplina> findByNumeroDocumento(
		java.lang.String numeroDocumento)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByNumeroDocumento(numeroDocumento);
	}

	/**
	* Returns a range of all the Inscripcions where numeroDocumento = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param numeroDocumento the numero documento
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @return the range of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.InscripcionDisciplina> findByNumeroDocumento(
		java.lang.String numeroDocumento, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByNumeroDocumento(numeroDocumento, start, end);
	}

	/**
	* Returns an ordered range of all the Inscripcions where numeroDocumento = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param numeroDocumento the numero documento
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.InscripcionDisciplina> findByNumeroDocumento(
		java.lang.String numeroDocumento, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByNumeroDocumento(numeroDocumento, start, end,
			orderByComparator);
	}

	/**
	* Returns the first Inscripcion in the ordered set where numeroDocumento = &#63;.
	*
	* @param numeroDocumento the numero documento
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Inscripcion
	* @throws slcu.NoSuchInscripcionDisciplinaException if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina findByNumeroDocumento_First(
		java.lang.String numeroDocumento,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionDisciplinaException {
		return getPersistence()
				   .findByNumeroDocumento_First(numeroDocumento,
			orderByComparator);
	}

	/**
	* Returns the first Inscripcion in the ordered set where numeroDocumento = &#63;.
	*
	* @param numeroDocumento the numero documento
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Inscripcion, or <code>null</code> if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina fetchByNumeroDocumento_First(
		java.lang.String numeroDocumento,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByNumeroDocumento_First(numeroDocumento,
			orderByComparator);
	}

	/**
	* Returns the last Inscripcion in the ordered set where numeroDocumento = &#63;.
	*
	* @param numeroDocumento the numero documento
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Inscripcion
	* @throws slcu.NoSuchInscripcionDisciplinaException if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina findByNumeroDocumento_Last(
		java.lang.String numeroDocumento,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionDisciplinaException {
		return getPersistence()
				   .findByNumeroDocumento_Last(numeroDocumento,
			orderByComparator);
	}

	/**
	* Returns the last Inscripcion in the ordered set where numeroDocumento = &#63;.
	*
	* @param numeroDocumento the numero documento
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Inscripcion, or <code>null</code> if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina fetchByNumeroDocumento_Last(
		java.lang.String numeroDocumento,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByNumeroDocumento_Last(numeroDocumento,
			orderByComparator);
	}

	/**
	* Returns the Inscripcions before and after the current Inscripcion in the ordered set where numeroDocumento = &#63;.
	*
	* @param inscripcionId the primary key of the current Inscripcion
	* @param numeroDocumento the numero documento
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next Inscripcion
	* @throws slcu.NoSuchInscripcionDisciplinaException if a Inscripcion with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina[] findByNumeroDocumento_PrevAndNext(
		long inscripcionId, java.lang.String numeroDocumento,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionDisciplinaException {
		return getPersistence()
				   .findByNumeroDocumento_PrevAndNext(inscripcionId,
			numeroDocumento, orderByComparator);
	}

	/**
	* Returns all the Inscripcions where cue = &#63;.
	*
	* @param cue the cue
	* @return the matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.InscripcionDisciplina> findByCue(
		long cue) throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByCue(cue);
	}

	/**
	* Returns a range of all the Inscripcions where cue = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param cue the cue
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @return the range of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.InscripcionDisciplina> findByCue(
		long cue, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByCue(cue, start, end);
	}

	/**
	* Returns an ordered range of all the Inscripcions where cue = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param cue the cue
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.InscripcionDisciplina> findByCue(
		long cue, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByCue(cue, start, end, orderByComparator);
	}

	/**
	* Returns the first Inscripcion in the ordered set where cue = &#63;.
	*
	* @param cue the cue
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Inscripcion
	* @throws slcu.NoSuchInscripcionDisciplinaException if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina findByCue_First(long cue,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionDisciplinaException {
		return getPersistence().findByCue_First(cue, orderByComparator);
	}

	/**
	* Returns the first Inscripcion in the ordered set where cue = &#63;.
	*
	* @param cue the cue
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Inscripcion, or <code>null</code> if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina fetchByCue_First(long cue,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByCue_First(cue, orderByComparator);
	}

	/**
	* Returns the last Inscripcion in the ordered set where cue = &#63;.
	*
	* @param cue the cue
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Inscripcion
	* @throws slcu.NoSuchInscripcionDisciplinaException if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina findByCue_Last(long cue,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionDisciplinaException {
		return getPersistence().findByCue_Last(cue, orderByComparator);
	}

	/**
	* Returns the last Inscripcion in the ordered set where cue = &#63;.
	*
	* @param cue the cue
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Inscripcion, or <code>null</code> if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina fetchByCue_Last(long cue,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByCue_Last(cue, orderByComparator);
	}

	/**
	* Returns the Inscripcions before and after the current Inscripcion in the ordered set where cue = &#63;.
	*
	* @param inscripcionId the primary key of the current Inscripcion
	* @param cue the cue
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next Inscripcion
	* @throws slcu.NoSuchInscripcionDisciplinaException if a Inscripcion with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina[] findByCue_PrevAndNext(
		long inscripcionId, long cue,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionDisciplinaException {
		return getPersistence()
				   .findByCue_PrevAndNext(inscripcionId, cue, orderByComparator);
	}

	/**
	* Returns all the Inscripcions where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @return the matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.InscripcionDisciplina> findByDisciplinaId(
		long disciplinaId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByDisciplinaId(disciplinaId);
	}

	/**
	* Returns a range of all the Inscripcions where disciplinaId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param disciplinaId the disciplina ID
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @return the range of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.InscripcionDisciplina> findByDisciplinaId(
		long disciplinaId, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByDisciplinaId(disciplinaId, start, end);
	}

	/**
	* Returns an ordered range of all the Inscripcions where disciplinaId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param disciplinaId the disciplina ID
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.InscripcionDisciplina> findByDisciplinaId(
		long disciplinaId, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByDisciplinaId(disciplinaId, start, end,
			orderByComparator);
	}

	/**
	* Returns the first Inscripcion in the ordered set where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Inscripcion
	* @throws slcu.NoSuchInscripcionDisciplinaException if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina findByDisciplinaId_First(
		long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionDisciplinaException {
		return getPersistence()
				   .findByDisciplinaId_First(disciplinaId, orderByComparator);
	}

	/**
	* Returns the first Inscripcion in the ordered set where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Inscripcion, or <code>null</code> if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina fetchByDisciplinaId_First(
		long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByDisciplinaId_First(disciplinaId, orderByComparator);
	}

	/**
	* Returns the last Inscripcion in the ordered set where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Inscripcion
	* @throws slcu.NoSuchInscripcionDisciplinaException if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina findByDisciplinaId_Last(
		long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionDisciplinaException {
		return getPersistence()
				   .findByDisciplinaId_Last(disciplinaId, orderByComparator);
	}

	/**
	* Returns the last Inscripcion in the ordered set where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Inscripcion, or <code>null</code> if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina fetchByDisciplinaId_Last(
		long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByDisciplinaId_Last(disciplinaId, orderByComparator);
	}

	/**
	* Returns the Inscripcions before and after the current Inscripcion in the ordered set where disciplinaId = &#63;.
	*
	* @param inscripcionId the primary key of the current Inscripcion
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next Inscripcion
	* @throws slcu.NoSuchInscripcionDisciplinaException if a Inscripcion with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.InscripcionDisciplina[] findByDisciplinaId_PrevAndNext(
		long inscripcionId, long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionDisciplinaException {
		return getPersistence()
				   .findByDisciplinaId_PrevAndNext(inscripcionId, disciplinaId,
			orderByComparator);
	}

	/**
	* Returns all the Inscripcions.
	*
	* @return the Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.InscripcionDisciplina> findAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll();
	}

	/**
	* Returns a range of all the Inscripcions.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @return the range of Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.InscripcionDisciplina> findAll(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll(start, end);
	}

	/**
	* Returns an ordered range of all the Inscripcions.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.InscripcionDisciplina> findAll(
		int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll(start, end, orderByComparator);
	}

	/**
	* Removes all the Inscripcions where numeroDocumento = &#63; from the database.
	*
	* @param numeroDocumento the numero documento
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByNumeroDocumento(java.lang.String numeroDocumento)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByNumeroDocumento(numeroDocumento);
	}

	/**
	* Removes all the Inscripcions where cue = &#63; from the database.
	*
	* @param cue the cue
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByCue(long cue)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByCue(cue);
	}

	/**
	* Removes all the Inscripcions where disciplinaId = &#63; from the database.
	*
	* @param disciplinaId the disciplina ID
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByDisciplinaId(long disciplinaId)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByDisciplinaId(disciplinaId);
	}

	/**
	* Removes all the Inscripcions from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public static void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeAll();
	}

	/**
	* Returns the number of Inscripcions where numeroDocumento = &#63;.
	*
	* @param numeroDocumento the numero documento
	* @return the number of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static int countByNumeroDocumento(java.lang.String numeroDocumento)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByNumeroDocumento(numeroDocumento);
	}

	/**
	* Returns the number of Inscripcions where cue = &#63;.
	*
	* @param cue the cue
	* @return the number of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static int countByCue(long cue)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByCue(cue);
	}

	/**
	* Returns the number of Inscripcions where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @return the number of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static int countByDisciplinaId(long disciplinaId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByDisciplinaId(disciplinaId);
	}

	/**
	* Returns the number of Inscripcions.
	*
	* @return the number of Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static int countAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countAll();
	}

	public static InscripcionDisciplinaPersistence getPersistence() {
		if (_persistence == null) {
			_persistence = (InscripcionDisciplinaPersistence)PortletBeanLocatorUtil.locate(slcu.service.ClpSerializer.getServletContextName(),
					InscripcionDisciplinaPersistence.class.getName());

			ReferenceRegistry.registerReference(InscripcionDisciplinaUtil.class,
				"_persistence");
		}

		return _persistence;
	}

	/**
	 * @deprecated
	 */
	public void setPersistence(InscripcionDisciplinaPersistence persistence) {
	}

	private static InscripcionDisciplinaPersistence _persistence;
}